package com.itheima.clean;

import cn.hutool.core.date.DateTime;
import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.service.OrderSettingService;
import org.springframework.stereotype.Component;


@Component
public class CleanOrder {

    @Reference
    OrderSettingService orderSettingService;


    public void cleanOrderSetting(){
//        获取定时器启动的时间
        DateTime dateTime = new DateTime();
        orderSettingService.cleanOrderSetting(dateTime);


    }

}
